package com.netx.cubigraf.shared;
import com.netx.ebs.AuthorizedServlet;
import com.netx.generics.basic.Context;
import com.netx.generics.io.FileSystem;
import com.netx.generics.tasks.TaskManager;


public class ApplicationServlet extends AuthorizedServlet {

	public ApplicationServlet(String permission) {
		super(permission);
	}
	
	protected TaskManager getTaskManager() {
		return (TaskManager)Context.getRootContext().getProperty("task-manager").objectValue();
	}
	
	protected FileSystem getFileServer() {
		return (FileSystem)Context.getRootContext().getProperty("servers/file-server").objectValue();
	}
}
